class test
{
public static int[] generateFibonacci(int num)
 {
  int[] fib=new int[num];
    fib[0] = 0;
    fib[1] = 1; 
   for(int i=2;i<fib.length;i++)
 {
	fib[i]=fib[i-1]+fib[i-2];
  }
return (fib);
 }
}